<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue页面结构</title>
    <script src="../lib/vue-2.4.0.js"></script>
</head>
<body>
    <div id="app"></div>
</body>
<script>
    var vm=new Vue({
        el:'#app',
        data:{
        },
        methods:{
        },
        //生命周期函数
        created:function(){
            console.log('数据初始化完毕');
        },
        mounted:function(){
            console.log('dom挂载完毕,可以操作DOM了');
        }
    });
</script>
</html>